package com.ax.associator.storepharmacist.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

public class BaseDrugstore {
    /**
     * 药店/公司ID
     */
    private Long drugstoreId;

    /**
     * 药店/公司名称
     */
    private String drugstoreName;

    /**
     * 拼音首字母
     */
    private String firstLetter;

    /**
     * 法定代表人姓名(药店负责人)
     */
    private String legalPersonName;

    /**
     * 法定代表人身份证号(药店负责人)
     */
    private String legalPersonId;

    /**
     * 注册日期(开店时间)
     */
    private String regDate;

    /**
     * 注册资金(万元)
     */
    private BigDecimal regCapital;

    /**
     * 行政区划代码
     */
    private String areaCode;

    /**
     * 行政区划名称
     */
    private String areaName;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 地址
     */
    private String address;

    /**
     * 成立日期/开店日期
     */
    private Date openDate;

    /**
     * 经度
     */
    private BigDecimal longitude;

    /**
     * 纬度
     */
    private BigDecimal latitude;

    /**
     * 银行帐号
     */
    private String account;

    /**
     * 开户行
     */
    private String bank;

    /**
     * 社会信用代码
     */
    private String creditCode;

    /**
     * 药店/公司简介
     */
    private String introduction;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 药店父级公司ID
     */
    private Long parentDrugstoreId;

    /**
     * 类型（1：公司，2：药店）
     */
    private Integer drugstoreType;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 修改时间
     */
    private Date updateDate;

    /**
     * 状态(1：有效；0：注销)
     */
    private Integer flag;
    
    
    
    private Integer rechargeType;
    
    private String beginDate;
    
    private String endDate;
    
    private Integer remindDays;
    
    private BigDecimal cost;
    
    private BigDecimal remindCost;
    
    //联表
    private Long menuId;
    private Integer type;
    private Integer parentId;
    private String name;
    

    public Integer getRechargeType() {
		return rechargeType;
	}

	public void setRechargeType(Integer rechargeType) {
		this.rechargeType = rechargeType;
	}

	public String getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(String beginDate) {
		this.beginDate = beginDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public Integer getRemindDays() {
		return remindDays;
	}

	public void setRemindDays(Integer remindDays) {
		this.remindDays = remindDays;
	}

	public BigDecimal getCost() {
		return cost;
	}

	public void setCost(BigDecimal cost) {
		this.cost = cost;
	}

	public BigDecimal getRemindCost() {
		return remindCost;
	}

	public void setRemindCost(BigDecimal remindCost) {
		this.remindCost = remindCost;
	}

	public String getRegDate() {
		return regDate;
	}

	public void setRegDate(String regDate) {
		this.regDate = regDate;
	}

	public Long getMenuId() {
		return menuId;
	}

	public void setMenuId(Long menuId) {
		this.menuId = menuId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public BaseDrugstore(Long drugstoreId, String drugstoreName, String firstLetter, String legalPersonName, String legalPersonId, String regDate, BigDecimal regCapital, String areaCode, String areaName, String phone, String address, Date openDate, BigDecimal longitude, BigDecimal latitude, String account, String bank, String creditCode, String introduction, String remarks, Long parentDrugstoreId, Integer drugstoreType, Date createDate, Date updateDate, Integer flag) {
        this.drugstoreId = drugstoreId;
        this.drugstoreName = drugstoreName;
        this.firstLetter = firstLetter;
        this.legalPersonName = legalPersonName;
        this.legalPersonId = legalPersonId;
        this.regDate = regDate;
        this.regCapital = regCapital;
        this.areaCode = areaCode;
        this.areaName = areaName;
        this.phone = phone;
        this.address = address;
        this.openDate = openDate;
        this.longitude = longitude;
        this.latitude = latitude;
        this.account = account;
        this.bank = bank;
        this.creditCode = creditCode;
        this.introduction = introduction;
        this.remarks = remarks;
        this.parentDrugstoreId = parentDrugstoreId;
        this.drugstoreType = drugstoreType;
        this.createDate = createDate;
        this.updateDate = updateDate;
        this.flag = flag;
    }

    public BaseDrugstore() {
        super();
    }

    public Long getDrugstoreId() {
        return drugstoreId;
    }

    public void setDrugstoreId(Long drugstoreId) {
        this.drugstoreId = drugstoreId;
    }

    public String getDrugstoreName() {
        return drugstoreName;
    }

    public void setDrugstoreName(String drugstoreName) {
        this.drugstoreName = drugstoreName == null ? null : drugstoreName.trim();
    }

    public String getFirstLetter() {
        return firstLetter;
    }

    public void setFirstLetter(String firstLetter) {
        this.firstLetter = firstLetter == null ? null : firstLetter.trim();
    }

    public String getLegalPersonName() {
        return legalPersonName;
    }

    public void setLegalPersonName(String legalPersonName) {
        this.legalPersonName = legalPersonName == null ? null : legalPersonName.trim();
    }

    public String getLegalPersonId() {
        return legalPersonId;
    }

    public void setLegalPersonId(String legalPersonId) {
        this.legalPersonId = legalPersonId == null ? null : legalPersonId.trim();
    }

    public BigDecimal getRegCapital() {
        return regCapital;
    }

    public void setRegCapital(BigDecimal regCapital) {
        this.regCapital = regCapital;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode == null ? null : areaCode.trim();
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName == null ? null : areaName.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public Date getOpenDate() {
        return openDate;
    }

    public void setOpenDate(Date openDate) {
        this.openDate = openDate;
    }

    public BigDecimal getLongitude() {
        return longitude;
    }

    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }

    public BigDecimal getLatitude() {
        return latitude;
    }

    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account == null ? null : account.trim();
    }

    public String getBank() {
        return bank;
    }

    public void setBank(String bank) {
        this.bank = bank == null ? null : bank.trim();
    }

    public String getCreditCode() {
        return creditCode;
    }

    public void setCreditCode(String creditCode) {
        this.creditCode = creditCode == null ? null : creditCode.trim();
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction == null ? null : introduction.trim();
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    public Long getParentDrugstoreId() {
        return parentDrugstoreId;
    }

    public void setParentDrugstoreId(Long parentDrugstoreId) {
        this.parentDrugstoreId = parentDrugstoreId;
    }

    public Integer getDrugstoreType() {
        return drugstoreType;
    }

    public void setDrugstoreType(Integer drugstoreType) {
        this.drugstoreType = drugstoreType;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
    }
}